package com.easylinkin.linkappapi.grid.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.easylinkin.linkappapi.grid.entity.GridReportDayDetail;
import com.easylinkin.linkappapi.grid.models.dto.GridReportDayDetailSaveDTO;
import com.easylinkin.linkappapi.grid.models.vo.GridReportDayDetailCollectVO;

import javax.validation.constraints.NotNull;

/**
 * 网格日报填写详情 服务类
 *
 * @author kuyujie
 * @since 2024-05-21
 */
public interface IGridReportDayDetailService extends IService<GridReportDayDetail> {

    /**
     * 保存数据
     *
     * @param dto
     * @author kyj
     * @date 2024/5/21 10:32
     */
    void saveData(GridReportDayDetailSaveDTO dto);

    /**
     * 获取日报汇总数据
     *
     * @param reportId 日报id
     * @return GridReportDayDetailCollectVO
     * @author kyj
     * @date 2024/5/21 17:14
     */
    GridReportDayDetailCollectVO getDetailCollect(@NotNull(message = "日报ID不能为空") Long reportId);
}